import request from '../axios';

export function login (params) {
  return request({
    url: 'user/login/login',
    method: 'post',
    params
  });
}

export function setMobilePhoneCode (params) {
  return request({
    url: 'user/fantasyUser/sendPhotoCode',
    method: 'post',
    params
  });
}

export function accountNumberCheckOut (params) {
  return request({
    url: 'user/fantasyUser/checkAccNum',
    method: 'post',
    params
  });
}
export function register (params) {
  return request({
    url: 'user/fantasyUser/register',
    method: 'post',
    params
  });
}
export function setEmailCode (params) {
  return request({
    url: 'user/fantasyUser/sendEmail',
    method: 'post',
    params
  });
}

export function changePassWord (params) {
  return request({
    url: 'user/fantasyUser/modifyPassword',
    method: 'post',
    params
  });
}
